
#include "xdns-host-entry.h"
#include <assert.h>
#include <string.h>

using namespace std;

XdnsHostEntry::XdnsHostEntry()
{
}

XdnsHostEntry::~XdnsHostEntry()
{
}

XdnsHostEntryImpl::XdnsHostEntryImpl(const string& hostname,
                                     const struct in_addr* ipAddress)
: m_hostname(hostname),
  m_ipAddress()
{
    assert(ipAddress != NULL);
    memcpy(&m_ipAddress, ipAddress, sizeof(struct in_addr));
}

XdnsHostEntryImpl::~XdnsHostEntryImpl()
{
}

string
XdnsHostEntryImpl::GetHostname() const
{
    return m_hostname;
}

const struct in_addr*
XdnsHostEntryImpl::GetAddress() const
{
    return (&m_ipAddress);
}

